<%@ page contentType="text/html;charset=UTF-8" %>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="../css/base.css" />
<link rel="stylesheet" type="text/css" href="../css/jquery.dialog.css" />
<link rel="stylesheet" href="../css/index.css" />
    <link rel="stylesheet" href="../css/base.css" />
    <link rel="stylesheet" href="../css/info-reg.css" />
    <style type="text/css">
        .error{
            color:Red;
            font-size:13px;
            margin-left:5px;
            padding-left:16px;
        }
    </style>
<title>毕业生简历管理系统</title>
</head>

<body>
<%--            	<iframe src="/ors/html/employerRegister.jsp" id="iframe" width="100%" height="100%" frameborder="0"></iframe>--%>
    <div class="title">
        <h2>企业信息注册</h2>
    </div>
    <form id="fm" action="employerRegister" method="post">
        <div class="main">
            <p class="short-input ue-clear">
                <label>用户名：</label>
                <input name="account" type="text"/><span id="validate"></span>
            </p>
            <p class="short-input ue-clear">
                <label>密码：</label>
                <input name="password" type="password" style="width:258px;height:27px;border:1px solid #C5D6E0"/>
            </p>
            <p class="short-input ue-clear">
                <label>公司名称：</label>
                <input name="name" type="text"/>
            </p>
            <p class="long-input ue-clear">
                <label>公司地址：</label>
                <input name="address" type="text"/>
            </p>
            <p class="long-input ue-clear">
                <label>联系方式：</label>
                <input name="phone_number" type="text"/>
            </p>
            <p class="long-input ue-clear">
                <label>电子邮箱：</label>
                <input name="email" type="text"/>
            </p>
            <p class="short-input ue-clear">
                <label>成立时间：</label>
                <input name="etb_time" type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
            </p>
            <p class="long-input ue-clear">
                <label>法定代表人：</label>
                <input name="legal_rep" type="text"/>
            </p>
            <p class="short-input ue-clear">
                <label>企业简介：</label>
                <textarea name="profile" placeholder="请输入内容"></textarea>
            </p>
            <div class="btn ue-clear">
                <input style="height:50px;width:150px;background-color:#8eb2d2;color:white;border-radius:10px" type="submit" value="提交并进入"/>
                <input style="height:50px;width:150px;background-color:#EFF6FA;color:black;border-radius:5px" type="reset" value="清空"/>
            </div>
        </div>
    </form>
            </div>
    </div>
</div>
</body>
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/common.js"></script>
<script type="text/javascript" src="../js/core.js"></script>
<script type="text/javascript" src="../js/jquery.dialog.js"></script>
<script type="text/javascript" src="../js/index.js"></script>
<script type="text/javascript" src="../js/WdatePicker.js"></script>
<script type="text/javascript" src="../js/jquery.validate.min.js"></script>
<%--<script type="text/javascript">--%>
<%--    showRemind('input[type=text], textarea','placeholder');--%>

<%--    $( "#fm" ).validate({--%>
<%--        rules: {--%>
<%--            username: {--%>
<%--                required: true,--%>
<%--                minlength: 4,--%>
<%--                maxlength: 10--%>
<%--            },--%>
<%--            password: {--%>
<%--                required:true--%>
<%--            },--%>
<%--            name: {--%>
<%--                required:true--%>
<%--            },--%>
<%--            location: {--%>
<%--                required:true--%>
<%--            },--%>
<%--            phone: {--%>
<%--                required:true--%>
<%--            }--%>
<%--        },--%>

<%--        messages: {--%>
<%--            username: {--%>
<%--                required: "*不能为空！",--%>
<%--                maxlength: $.validator.format( "长度不得大于10个字符！" ),--%>
<%--                minlength: $.validator.format( "长度不得小于4个字符！" )--%>
<%--            },--%>
<%--            password: {--%>
<%--                required: "*不能为空！"--%>
<%--            },--%>
<%--            name: {--%>
<%--                required: "*不能为空！"--%>
<%--            },--%>
<%--            location: {--%>
<%--                required: "*不能为空！"--%>
<%--            },--%>
<%--            phone: {--%>
<%--                required:"*不能为空！"--%>
<%--            }--%>
<%--        },--%>
<%--        submitHandler: function(form) {--%>
<%--            validate();  //用自定义函数提交表单  --%>
<%--        }--%>
<%--    });--%>

<%--    //ajax验证用户名成功后，再进行注册	--%>
<%--    function validate(){--%>
<%--        $.ajax({--%>
<%--            url:"../registerServlet",--%>
<%--            type:"post",--%>
<%--            dataType:"text",--%>
<%--            data:$("#fm").serialize(),--%>
<%--            success:function(data){--%>
<%--                console.log(data);--%>
<%--                if(data=='该用户名已存在！'){--%>
<%--                    $("#validate").html(data);--%>
<%--                }else{--%>
<%--                    alert("注册成功！");--%>
<%--                    window.open ('/ors/login.jsp','_top');--%>
<%--                }--%>
<%--            }--%>
<%--        });--%>
<%--    }--%>
<%--</script>--%>
</html>
